package 线程;

public class 线程3 implements  Runnable{

    @Override
    public void run() {
        for (int i=1;i<=100;i++){
            if (i==50){
                try {
                    Thread.sleep(5000);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
            System.out.println(Thread.currentThread().getName()+"--"+i);
        }
    }
}
